home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / RCS / resolv.h,v < prev    next >
Encoding:
Text File  |  1989-07-01  |  2.5 KB  |  130 lines

  1. head     1.4;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.4
  10. date     89.07.01.02.40.34;  author rab;  state Exp;
  11. branches ;
  12. next     1.3;
  13.  
  14. 1.3
  15. date     89.06.23.11.30.38;  author rab;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     88.06.29.14.58.05;  author ouster;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     88.06.26.15.38.23;  author ouster;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @@
  32.  
  33.  
  34. 1.4
  35. log
  36. @First char in file, '/', had been deleted.
  37. @
  38. text
  39. @/*
  40.  * Copyright (c) 1983, 1987 Regents of the University of California.
  41.  * All rights reserved.  The Berkeley software License Agreement
  42.  * specifies the terms and conditions for redistribution.
  43.  *
  44.  *    @@(#)resolv.h    5.5 (Berkeley) 5/12/87
  45.  */
  46.  
  47. #ifndef _RESOLV
  48. #define _RESOLV
  49.  
  50. /*
  51.  * Global defines and variables for resolver stub.
  52.  */
  53.  
  54.  
  55. #define    MAXNS        3        /* max # name servers we'll track */
  56. #define    MAXDNSRCH    3        /* max # default domain levels to try */
  57. #define    LOCALDOMAINPARTS 2        /* min levels in name that is "local" */
  58.  
  59. #define    RES_TIMEOUT    4        /* seconds between retries */
  60.  
  61. struct state {
  62.     int    retrans;         /* retransmition time interval */
  63.     int    retry;            /* number of times to retransmit */
  64.     long    options;        /* option flags - see below. */
  65.     int    nscount;        /* number of name servers */
  66.     struct    sockaddr_in nsaddr_list[MAXNS];    /* address of name server */
  67. #define    nsaddr    nsaddr_list[0]        /* for backward compatibility */
  68.     u_short    id;            /* current packet id */
  69.     char    defdname[MAXDNAME];    /* default domain */
  70.     char    *dnsrch[MAXDNSRCH+1];    /* components of domain to search */
  71. };
  72.  
  73. /*
  74.  * Resolver options
  75.  */
  76. #define RES_INIT    0x0001        /* address initialized */
  77. #define RES_DEBUG    0x0002        /* print debug messages */
  78. #define RES_AAONLY    0x0004        /* authoritative answers only */
  79. #define RES_USEVC    0x0008        /* use virtual circuit */
  80. #define RES_PRIMARY    0x0010        /* query primary server only */
  81. #define RES_IGNTC    0x0020        /* ignore trucation errors */
  82. #define RES_RECURSE    0x0040        /* recursion desired */
  83. #define RES_DEFNAMES    0x0080        /* use default domain name */
  84. #define RES_STAYOPEN    0x0100        /* Keep TCP socket open */
  85. #define RES_DNSRCH    0x0200        /* search up local domain tree */
  86.  
  87. #define RES_DEFAULT    (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH)
  88.  
  89. extern struct state _res;
  90. extern char *p_cdname(), *p_rr(), *p_type(), *p_class();
  91.  
  92. #endif /* _RESOLV */
  93. @
  94.  
  95.  
  96. 1.3
  97. log
  98. @*** empty log message ***
  99. @
  100. text
  101. @d1 1
  102. a1 1
  103. *
  104. @
  105.  
  106.  
  107. 1.2
  108. log
  109. @Add ifdefs so that file can't be processed twice.
  110. @
  111. text
  112. @d1 1
  113. a1 2
  114.  
  115. /*
  116. d54 1
  117. a54 1
  118. #endif _RESOLV
  119. @
  120.  
  121.  
  122. 1.1
  123. log
  124. @Initial revision
  125. @
  126. text
  127. @d10 3
  128. d54 2
  129. @
  130.